    #! /bin/sh  
      
    #启动方法    
    start(){  
     now=`date "+%Y%m%d%H%M%S"`  
     java -Xms128m -Xmx2048m -jar  com-yz-platform-1.0.0.jar  >"$now"_bidcheck.log &

    }
    #停止方法  
    stop(){  
     ps -ef|grep java|awk '{print $2}'|while read pid  
     do  
        kill -9 $pid  
     done  
    }  
      
    case "$1" in  
    start)  
    start  
    ;;  
    stop)  
    stop  
    ;;    
    restart)  
    stop  
    start  
    ;;  
    *)  
    printf 'Usage: %s {start|stop|restart}\n' "$prog"  
    exit 1  
    ;;  
    esac